Optimal. Leaf size=95 \[ \frac {(a-b p) \left (a+b \sin ^2(c+d x)\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {b \sin ^2(c+d x)}{a}+1\right )}{2 a^2 d (p+1)}-\frac {\csc ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^{p+1}}{2 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3194, 78, 65} \[ \frac {(a-b p) \left (a+b \sin ^2(c+d x)\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {b \sin ^2(c+d x)}{a}+1\right )}{2 a^2 d (p+1)}-\frac {\csc ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^{p+1}}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 78
Rule 3194
Rubi steps
\begin {align*} \int \cot ^3(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(1-x) (a+b x)^p}{x^2} \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=-\frac {\csc ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^{1+p}}{2 a d}-\frac {(a-b p) \operatorname {Subst}\left (\int \frac {(a+b x)^p}{x} \, dx,x,\sin ^2(c+d x)\right )}{2 a d}\\ &=-\frac {\csc ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^{1+p}}{2 a d}+\frac {(a-b p) \, _2F_1\left (1,1+p;2+p;1+\frac {b \sin ^2(c+d x)}{a}\right ) \left (a+b \sin ^2(c+d x)\right )^{1+p}}{2 a^2 d (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.43, size = 73, normalized size = 0.77 \[ -\frac {\left (a+b \sin ^2(c+d x)\right )^{p+1} \left (\frac {(b p-a) \, _2F_1\left (1,p+1;p+2;\frac {b \sin ^2(c+d x)}{a}+1\right )}{p+1}+a \csc ^2(c+d x)\right )}{2 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (-b \cos \left (d x + c\right )^{2} + a + b\right )}^{p} \cot \left (d x + c\right )^{3}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right )^{2} + a\right )}^{p} \cot \left (d x + c\right )^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.85, size = 0, normalized size = 0.00 \[ \int \left (\cot ^{3}\left (d x +c \right )\right ) \left (a +b \left (\sin ^{2}\left (d x +c \right )\right )\right )^{p}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right )^{2} + a\right )}^{p} \cot \left (d x + c\right )^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {cot}\left (c+d\,x\right )}^3\,{\left (b\,{\sin \left (c+d\,x\right )}^2+a\right )}^p \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________